//
//  KZVocabularyImproveNetApi.m
//  听说弱点强化训练
//
//  Created by 朱凯 on 2018/8/23.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import "KZVocabularyImproveNetApi.h"

@implementation KZVocabularyImproveNetApi

- (void)getUnfamiliarVocabularyPackage:(void(^)(void))success
                               failuer:(void(^)(NSString *error))failure {
    
    self.requestUrl = @"api/ZXYYTS/W_ZXYYTS_GetUnfamiliarVocabularyPackage";
    
    [self requestGetMethodWithSuccess:^(id responseObject) {
        
        NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:nil];
        
//        ModelHome *home = [ModelHome yy_modelWithDictionary:dict];
//        success(home);
        NSLog(@"%@", dict);
        NSLog(@"%@", dict[@"Detail"]);
        if (dict[@"Detail"]) {
            NSLog(@"1");
        } else {
            NSLog(@"0");
        }
    } Failure:^(NSError *error) {
        NSLog(@"error:%@", error.localizedDescription);
        failure(error.localizedDescription);
        
    }];
}
@end
